Longest Consecutive Sequence | Leetcode 128 | Python Solution